import { $http } from './index';

export function usernameLogin(data:Object) {
    return $http({
        method: 'post',
        url: '/pl/pack/login/usernameLogin',
        data,
    });
}

export function getUserInfo() {
    return $http({
        method: 'get',
        url: '/md/user/getUserInfo',
    });
}

export function getGroupInfo() {
    return $http({
        method: 'post',
        url: '/md/user/getMediaUserInfo',
    });
}

export function getUserPermission(params:Object){
    return $http.get('/md/permission/user/product',{params});
}

// 获取潮工作身份
export function getCommonUserInfo() {
    return $http.get('/saas/common/user/info');
}
